package com.open.capacity.common.model;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

/**
 * 意见反馈表，用于记录问卷调查反馈信息，用户发布的意见信息等
 *
 * @author liangd
 * @since 2021-01-29 16:37
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode
public class Suggest implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 建议id，主键，自增
     */
    @TableId(value = "sugeid",type = IdType.AUTO)
    private Integer sugeid;

    /**
     * 问卷id
     */
    private Integer papeid;

    /**
     * 用户id
     */
    private Long userid;

    /**
     * 建议内容
     */
    private String contex;

    /**
     * 被建议角色
     */
    private String sugper;

    /**
     * 数据状态1:正常2:逻辑删除
     */
    private Integer status;

    /**
     * 发布时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date cretim;

    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updtim;

    /**
     * 调查对象
     */
    private String respdt;
}

